package com.cssw.fyzb.core.dao.user;

import com.cssw.fyzb.core.model.dodb.UserPayLog;
import com.ydn.dbframe.plugin.activerecord.Page;
import com.ydn.dbframe.plugin.activerecord.parse.SqlParse;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * @Auther: zzf
 * @Date: 2020/12/2 17:51
 * @Description:
 */
@Repository
public class UserPayLogDaoImpl implements UserPayLogDao {

    @Override
    public Page<UserPayLog> list(int page, int limit, Map param) {
        SqlParse sqlParse = new SqlParse(param);
        sqlParse.addSQL("select * from t_user_pay_log where user_id=:user_id order by create_time desc");
        return UserPayLog.dao.paginate(page, limit, sqlParse);
    }
}
